import Handle from "./handle";
import SingletonMessage from "@/utils/message";

/**
 * 异常处理器策略
 *
 */
export default class HandleException extends Handle {
  action(_, res) {
    SingletonMessage.error(res.data.message);
    return Promise.reject(res.data);
  }
}
